<form name="form" class="password meta-container-40 form-horizontal" novalidate ng-submit="submitForm(form.$valid)">
    <div class="form-group form-group-sm" ng-class="{'has-error': form.oldPassword.$invalid && clicked}">
        <label class="col-xs-1 control-label">原始密码</label>

        <div class="col-xs-4">
            <input class="form-control" type="password" ng-model="formData.oldPassword" name="oldPassword" minlength="6"
                   maxlength="20" required
                   placeholder="请输入原始密码"/>
        </div>
        <div class="col-xs-2" ng-messages="form.oldPassword.$error" ng-show="clicked">
            <span class="error-tips" ng-messages-include="my-custom-messages"></span>
        </div>
    </div>
    <div class="form-group form-group-sm" ng-class="{'has-error': form.newPassword.$invalid && clicked}">

        <label class="col-xs-1 control-label">修改密码</label>

        <div class="col-xs-4">
            <input class="form-control" type="password" ng-model="formData.newPassword" name="newPassword"
                   minlength="6" maxlength="20" required placeholder="请输入新密码，长度6～20位"/>
        </div>
        <div class="col-xs-2" ng-messages="form.newPassword.$error" ng-show="clicked">
            <span class="error-tips" ng-messages-include="my-custom-messages"></span>
        </div>
    </div>

    <div class="form-group form-group-sm" ng-class="{'has-error': form.repeatPassword.$invalid && clicked}">
        <label class="col-xs-1 control-label">重复密码</label>

        <div class="col-xs-4">
            <input class="form-control" type="password" ng-model="repeatPassword" name="repeatPassword"
                   minlength="6" maxlength="20" required meta-form-compare-to="formData.newPassword"
                   placeholder="请确认新密码，长度6～20位"/>
        </div>
        <div class="col-xs-2" ng-messages="form.repeatPassword.$error" ng-show="clicked">
            <span class="error-tips" ng-messages-include="my-custom-messages"></span>
        </div>
    </div>

    <div class="submit-part">
        <button class="btn btn-info btn-meta-14 btn-meta-blue" type="submit">确认修改</button>
    </div>
</form>
